<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../mycss/style.css" />
<link href="../js/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="../js/jBox/Skins/Gray/jbox.css" type="text/css">
<link rel="stylesheet" href="../js/laypage/skin/laypage.css" media="all">
<script type="text/javascript" src="../js/jquery-1.11.1.min.js"></script>
<script src="../js/laypage/laypage.js"></script>
<script language='javascript' src='../js/jBox/jquery.jBox-2.3.min.js'></script>
<script language='javascript' src='../js/jBox/i18n/jquery.jBox-zh-CN.js'></script>
<script type="text/javascript" src="../js/contractTable.js"></script>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="../js/bootstrap/js/bootstrap.min.js"></script>
<title>【合同审核】</title>
</head>
<body id="tablePage" onload="listContract1(1)">
 <div class="container">	
 	<div><!--  页面地址导航：合同管理~~>合同创建  -->
 		<ol class="breadcrumb">
		  <li><a href="#">合同管理</a></li>
		  <li class="active">合同审核</li>
		</ol>
		<blockquote>
			<p class="">合同审核</p>
		</blockquote> 	
		<form id="searchForm">
			合同名称：<input type="text" name="conName" id="serachConName"/>
			类型：<select name="conType" id="searchConType" style="height:28px">
				<option selected="selected" value="">不限</option>
				<option value="销售合同">销售合同</option>
				<option value="委托合同">委托合同</option>
				<option value="技术合同">技术合同</option>
				<option value="运输合同">运输合同</option>
			</select>
			状态：<select name="conState" id="searchConState" style="height:30px">
				<option selected="selected" value="">不限</option>
				<option value="已订立">已订立</option>
				<option value="已提交">已提交</option>
				<option value="已打回">已打回</option>
				<option value="已审核">已审核</option>
			</select>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="button" class="btn btn-primary btn-sm search" value="查询"/>
		</form>
		<hr/>
 	</div>
 	<span>合同信息列表</span>
	<div class="col-md-offset-8">	
		<input class="btn btn-default lookBtn" type="button" value="查看" />
		<input class="btn btn-default reviewBtn" type="button" value="审核" />
	</div>	
	<div class="row">		
		<table id="conTable1" class="table table-bordered">
			<thead>
				<tr class="info"><th></th><th><input id="checkall" type="checkbox" name="checkedAll" value=""/>全选</th><th>合同名称</th><th>合同类型</th><th>状态</th><th>最后操作时间</th><th>待处理人</th><th>操作</th></tr>				
			</thead>
			<tbody></tbody>
			<tfoot><tr><td colspan="8"><div id="reviewfenye"></div></td></tr></tfoot>
		</table>			
	</div>
 	
 	<!-- 模态框 查看合同页面开始 -->
 	<div class="modal fade" id="lookContract" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">	
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">查看合同</h4>					
				</div>
				<form class="form-horizontal" role="form" id="lookContractForm">
										
					<div class="modal-body">
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同编号：
							</label>

							<div class="col-sm-8">
								<input type="text" class="form-control" id="contractId2"
									name="contractId" style="width: 250px" maxlength="15" readonly="readonly" value=""/>
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同名称：
							</label>

							<div class="col-sm-8">
								<input type="text" class="form-control" id="conName2"
									name="conName" style="width: 250px" maxlength="15"
									placeholder="XXX公司销售合同" />
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同类型：
							</label>

							<div class="col-sm-8">								
								<select id="conType2" class="form-control" name="conType" style="width: 120px">
									<option id="optionType" value=""></option>
								</select>
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同金额：
							</label>

							<div class="col-sm-5 input-group">
								<span class="input-group-addon" style="margin-left:5px">￥</span>
								<input type="text" class="form-control" name="conPrice"
									id="conPrice2" placeholder="人民币" aria-describedby="basic-addon2">
								<span class="input-group-addon" id="basic-addon2">元</span>
							</div>
						</div>
						

						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">甲方：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conPartyA"
									id="conPartyA2" style="width: 250px" placeholder="XXX公司" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">乙方：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conPartyB"
									id="conPartyB2" style="width: 250px" placeholder="XXX公司" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">甲方企业经营许可证号：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conBusinessNumA"
									id="conBusinessNumA2" style="width: 250px" placeholder="鲁No.0569" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">乙方企业经营许可证号：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conBusinessNumB"
									id="conBusinessNumB2" style="width: 250px" placeholder="京B2-20050088" />
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同创建人：
							</label>

							<div class="col-sm-8">
								<input type="text" class="form-control" id="conCreater2"
									name="conCreater" style="width: 250px" maxlength="15"
									placeholder="XXX" />
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同内容：
							</label>

							<div class="col-sm-8">
								<textarea class="form-control" name="conContext" 
									id="conContext2" rows="10" placeholder="经山东临沂泰兴公司（以下称买受方）与北京急速科技有限公司（以下称出卖方）友好协商，特订立以下条款：..................."></textarea>
							</div>
						</div>
						
																	
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">备注信息：
							</label>

							<div class="col-sm-8">
								<textarea class="form-control" name="conRemark" 
									id="conRemark2" rows="5"></textarea>
							</div>
						</div>
					</div>
																					
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭
						</button>
					</div>
				</form>
			</div>
			<!-- /.modal-content -->
			
		</div>
	</div>
 	<!-- 模态框 查看合同页面结束 -->
 	
 	<!-- 模态框 审核合同页面开始 -->
 	<div class="modal fade" id="reviewContract" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">	
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">审核合同</h4>					
				</div>
				<form class="form-horizontal" role="form" id="reviewContractForm">
										
					<div class="modal-body">
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同编号：
							</label>

							<div class="col-sm-8">
								<input type="text" class="form-control" id="contractId3"
									name="contractId" style="width: 250px" maxlength="15" readonly="readonly" value=""/>
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同名称：
							</label>

							<div class="col-sm-8">
								<input type="text" class="form-control" id="conName3"
									name="conName" style="width: 250px" maxlength="15"
									placeholder="XXX公司销售合同" />
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同类型：
							</label>

							<div class="col-sm-8">								
								<select id="conType3" class="form-control" name="conType" style="width: 120px">
									<option id="optionType3" value="销售合同" selected="selected">销售合同</option>
								</select>
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同金额：
							</label>

							<div class="col-sm-5 input-group">
								<span class="input-group-addon" style="margin-left:5px">￥</span>
								<input type="text" class="form-control" name="conPrice"
									id="conPrice3" placeholder="人民币" aria-describedby="basic-addon2">
								<span class="input-group-addon" id="basic-addon2">元</span>
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">甲方：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conPartyA"
									id="conPartyA3" style="width: 250px" placeholder="XXX公司" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">乙方：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conPartyB"
									id="conPartyB3" style="width: 250px" placeholder="XXX公司" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">甲方企业经营许可证号：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conBusinessNumA"
									id="conBusinessNumA3" style="width: 250px" placeholder="鲁No.0569" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">乙方企业经营许可证号：
							</label>

							<div class="col-sm-8">
								<input type="text" class=" sortNumber form-control" name="conBusinessNumB"
									id="conBusinessNumB3" style="width: 250px" placeholder="京B2-20050088" />
							</div>
						</div>
						
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">合同内容：
							</label>

							<div class="col-sm-8">
								<textarea class="form-control" name="conContext" 
									id="conContext3" rows="10" placeholder="经山东临沂泰兴公司（以下称买受方）与北京急速科技有限公司（以下称出卖方）友好协商，特订立以下条款：..................."></textarea>
							</div>
						</div>
						
																	
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">备注信息：
							</label>

							<div class="col-sm-8">
								<textarea class="form-control" name="conRemark" 
									id="conRemark3" rows="5"></textarea>
							</div>
						</div>
					</div>
																					
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭
						</button>
						<button type="button" class="btn btn-danger" id="btnReviewBack">
							打回</button>
						<button type="button" class="btn btn-primary" id="btnReviewOk">
							确认</button>
					</div>
				</form>
			</div>
			<!-- /.modal-content -->
			
		</div>
	</div>
 	<!-- 模态框 审核合同页面结束 -->
 	
	<!-- 模态框 填写打回合同审批页面开始 -->
 	<div class="modal fade" id="backContract" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">	
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">打回合同</h4>					
				</div>
				<form class="form-horizontal" role="form" id="backContractForm">
										
					<div class="modal-body">
						
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">
							</label>

							<div class="col-sm-8">
								<input type="hidden" class=" sortNumber form-control" name="contractId"
									id="contractId4" style="width: 250px"/>
							</div>
						</div>
																	
						<div class="form-group">
							<label class="col-sm-4 control-label no-padding-right">请填写审批意见：
							</label>

							<div class="col-sm-8">
								<textarea class="form-control" name="conCheckIdea" 
									id="conCheckIdea" rows="5"></textarea>
							</div>
						</div>
					</div>
																					
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭
						</button>
						<button type="button" class="btn btn-primary" id="btnBackOk">
							确认打回</button>
					</div>
				</form>
			</div>
			<!-- /.modal-content -->
			
		</div>
	</div>
 	<!-- 模态框 打回合同模态框结束 -->
</div>
</body>
</html>